﻿using OurEDAFM.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace OurEDAFM.Controllers
{
    public class AuthController : Controller
    {
        public string Login(string email, string password)
        {
            string result = WebClientHelper.GetJsonString("/Auth/Login?password=" + password + "&email=" + email);
            return result;
        }

        public string Register(string name, string password, string email)
        {
            string result = WebClientHelper.GetJsonString("/Auth/Register?password=" + password + "&email=" + email + "&name="+name);
            return result;
        }

    }
}